import VueRouter from 'vue-router'
import homeContainer from './components/tabbar/HomeContainer.vue'
import memberContainer from './components/tabbar/MemberContainer.vue'
import shopcarContainer from './components/tabbar/ShopcarContainer.vue'
import searchContainer from './components/tabbar/searchContainer.vue'
import newsList from './components/news/NewsList.vue'
import newsInfo from './components/news/newsInfo.vue'
import photoList from './components/photos/PhotoList.vue'
import photoinfo from './components/photos/PhotoInfo.vue'
import goodsList from './components/goods/goodsList.vue'
import goodsInfo from './components/goods/goodsInfo.vue'
import goodsintroduce from './components/goods/goodsintroduce.vue'
import goodscomment from './components/goods/goodscomment.vue'
var router = new VueRouter({
    routes:[
        {path:'/',redirect:'/home'},
        {path:'/home',component:homeContainer},
        {path:'/member',component:memberContainer},
        {path:'/shopcar',component:shopcarContainer},
        {path:'/search',component:searchContainer},
        {path:'/home/newsList',component:newsList},
        {path:'/home/newsInfo/:id',component:newsInfo},
        {path:'/home/photolist',component:photoList},
        {path:'/home/photoinfo/:id',component:photoinfo},
        {path:'/home/goodslist',component:goodsList},
        {path:'/home/goodsInfo/:id',component:goodsInfo},
        {path:'/home/goodsintroduce/:id',component:goodsintroduce},
        {path:'/home/goodscomment/:id',component:goodscomment},

    ],
    linkActiveClass:'mui-active'
})
export default router